﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Exam.Core.Model {
    [Serializable]
    public class Course : IComparable<Course> {
        private string _id;
        public string Id {
            get { return _id; }
            set { _id = value; }
        }
        private string _title;
        //课程名称
        public string Title {
            get { return _title; }
            set { _title = value; }
        }
        private string _parent;
        public string Parent {
            get { return _parent; }
            set { _parent = value; }
        }

        private string _KnowCount;

        public string KnowCount {
            get { return _KnowCount; }
            set { _KnowCount = value; }
        }


        //课程下试题数目
        private string _questionCount;
        public string QuestionCount {
            get { return _questionCount; }
            set { _questionCount = value; }
        }


        //知识点
        private List<Knowledge> _Knowledges;
        public List<Knowledge> Knowledges {
            get { return _Knowledges; }
            set { _Knowledges = value; }
        }
        

        //题型列表
        private List<QuestionType> _QuestionTypes;
        public List<QuestionType> QuestionTypes {
            get { return _QuestionTypes; }
            set { _QuestionTypes = value; }
        }




        #region IComparable<Course> 成员
        public int CompareTo(Course other) {
            return int.Parse(other._id).CompareTo(int.Parse(this._id));
        }
        #endregion
    }
}
